/**
 * Created with Intellij IDEA.
 * Description;
 * User:TQ02
 * Data:2023-11-10
 * Time:13:02
 * Text：
 */
public class text1 {
    public static void main(String[] args) {
        int i=2730;
        while(true){
           String num=Integer.toHexString(i);
           int k=0;
           for(int n=0;n<num.length();n++){
               if(num.charAt(n)>'f' || num.charAt(n)<'a'){
                   k=1;
                   break;
               }
           }
            if(k==0){
                System.out.println("\n结果是"+i);
                break;
            }else{
                System.out.println(num+" "+i);
                i++;
            }
        }

    }
}
